package client.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropKit {

	private PropKit() {
	}

	public static Properties loadProp(String propPath) {
		Properties properties = new Properties();
		InputStream is = PropKit.class.getClassLoader().getResourceAsStream(propPath);
		try {
			properties.load(is);
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			try {
				is.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		return properties;
	}
}
